package com.wasion.gydpe.model;

import java.util.List;
import java.util.Map;

/**
 * 
 * @ClassName: Node
 * @Description: 节点POJO定义
 * @author 高意
 * @date Oct 8, 2012 9:46:02 AM
 * 
 */
public class Node {

	private String id; // 节点Id

	private String text; // 节点文本

	private String state; // 节点状态, 'open'或者'closed', 默认是'open'

	private boolean checked; // 节点是否选中, true 或者 false

	private List<Node> children; // 子节点集

	private Map<String, Object> attributes; // 节点自定义属性集

	private String iconCls; // 节点图标css class

	private String target; // 目标dom对象

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<Node> getChildren() {
		return children;
	}

	public void setChildren(List<Node> children) {
		this.children = children;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

}
